package com.aquarium.ui;

import com.aquarium.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;

public class MainSettingActivity extends Activity {
	
	private ImageButton mModuleSettingButton;
	private ImageButton mModuleControllButton;
	private ImageButton mAlarmSettingButton;
	private ImageButton mPasswordSettingButton;
	private ImageButton mModeSettingButton;
	
	private ImageView mExitButton;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.main_setting);
		
		findViews();
		setListener();

	}
	
	private void findViews(){
		mModuleSettingButton = (ImageButton)findViewById(R.id.module_setting);
		mModuleControllButton = (ImageButton)findViewById(R.id.module_controll);
		mAlarmSettingButton = (ImageButton)findViewById(R.id.alarm_setting);
		mPasswordSettingButton = (ImageButton)findViewById(R.id.password_setting);
		mModeSettingButton = (ImageButton)findViewById(R.id.mode_setting);
		mExitButton = (ImageView)findViewById(R.id.back_button);
	}
	
	private void setListener(){
		mModuleSettingButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
		});
		
		mModuleControllButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
		});
		
		mAlarmSettingButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();

				intent.setClass(MainSettingActivity.this,
						AlarmSettingActivity.class);
				startActivity(intent);
			}
		});
		
		mPasswordSettingButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
		});
		mModeSettingButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
		});
		mExitButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}
}
